enum class LicenseStatus {

    UNQUALIFIED,
    LEARNING,
    QUALIFIED;

    var licenseId: String? = null

}

class Driver1(var status: LicenseStatus) {
    fun checkLicense(): String {
        return when(status){
            LicenseStatus.UNQUALIFIED -> "没资格"
            LicenseStatus.LEARNING -> "在学"
            LicenseStatus.QUALIFIED -> "有资格"
        }
    }
}

fun main() {
    println(Driver1(LicenseStatus.QUALIFIED).checkLicense())
}